Function |checked_format

std/text/compose::|checked_format


Usage

|checked_format(format, entries)

Parameters

↳ format: string
↳ entries: StringMap (std/data/string_map::StringMap)

Return

↴ Option<string>


Checked format string.

Return string formatted with given entries. Format string is expected to contains braced placeholders, like: "Hello {name}!".

If a formatting error happens, like missing key of incorrect format string, none is returned.